<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
    "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <title>Administrator</title>
        <link type="text/css" rel="stylesheet" href="/JudiBlog/admin/css/layout.css"/>
        <link rel="stylesheet" href="/JudiBlog/admin/css/project.css" />
        <script language="javascrpit" type="text/javascript" src="/JudiBlog/js/validation_1.js"></script>
    </head>
    <body>
        <div id="header">
            <img alt="logo" src="/JudiBlog/img/header/logo.png">
            <h1>Just do it</h1>
        </div>
        <div id="container">
            <div id="admin_menu"> <!--menu admin -->
                <ul>
                    <li><a href="../JudiBlog/">Home</a></li>
                    <li><a href="/JudiBlog/usermanage?action=requestViewAll">User management</a></li>
                    <li><a href="/JudiBlog/postmanage">Post management</a></li>
                    <li><a href="/JudiBlog/projectmanage?action=requestViewAll">Project management</a></li>
                </ul>
            </div>
            <div> <!-- menu -->
                <c:if test="${page == 'post_management' || page == 'newpost' }">
                    <%@include file="module/content/post_menu.jsp" %>
                </c:if>
                <c:if test="${page == 'userlist' || page == 'edit' || page == 'addnew'}">
                    <%@include file="module/content/user_menu.jsp" %>
                </c:if>
                <c:if test="${page == 'projectList' ||page=='addnewproject' || page=='editproject'}">
                    <%@include file="module/content/project_menu.jsp" %>
                </c:if>
            </div>
            <div id="admin_content">
                <c:if test="${page == 'post_management'}">
                    <%@include file="module/content/ListPost.jsp" %>
                </c:if>
                <c:if test="${page == 'newpost' }">
                    <%@include file="../member/content/new_post.jsp" %>
                </c:if>
                <c:if test="${page == 'userlist'}">
                    <%@include file="module/content/ListUser.jsp" %>
                </c:if>
                <c:if test="${page == 'edit'}">
                    <%@include file="module/content/UpdateUser.jsp" %>
                </c:if>
                <c:if test="${page == 'addnew'}">
                    <%@include file="module/content/adduser.jsp" %>
                </c:if> 
                <c:if test="${page == 'projectList'}">
                    <%@include file="module/content/ListProject.jsp" %>
                </c:if>
                <c:if test="${page == 'addnewproject'}">
                    <%@include file="module/content/add_project.jsp" %>
                </c:if>
                <c:if test="${page == 'editproject'}">
                    <%@include file="module/content/update_project.jsp" %>
                </c:if>
            </div>
        </div>
        <div id="footer">
            <h1>© 2023 by Judi Team</h1>
        </div>
    </body>
</html>